package com.lion.ball.modules.orderfood.web.model.results;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 类别食品关联 请求响应结果
 * Explain:
 * 
 */
@Schema(description = "类别食品关联 请求响应结果")
public class OfdCategoryFoodResult {
    @Schema(description = "主键", example = "1")
    private long id;
    @Schema(description = "分类编码", example = "1")
    private long categoryCode;
    @Schema(description = "食品编码", example = "1")
    private long foodCode;
    @Schema(description = "创建时间", example = "1")
    private long createTime;
    @Schema(description = "更新时间", example = "1")
    private long updateTime;
    @Schema(description = "是否删除 0 - 未删除 1 - 已删除", example = "1")
    private int isDeleted;
    @Schema(description = "状态 0 - 正常 1 - 异常", example = "1")
    private int status;

    // 无参构造方法
    public OfdCategoryFoodResult() {
    }

    // 全参数构造方法
    public OfdCategoryFoodResult(long id, long categoryCode, long foodCode, long createTime, long updateTime, int isDeleted, int status) {
        this.id = id;
        this.categoryCode = categoryCode;
        this.foodCode = foodCode;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
        this.status = status;
    }

    // 全参数create生成器
    public static OfdCategoryFoodResult create(long id, long categoryCode, long foodCode, long createTime, long updateTime, int isDeleted, int status) {
        return new OfdCategoryFoodResult(id, categoryCode, foodCode, createTime, updateTime, isDeleted, status);
    }

    // 全参数of生成器
    public static OfdCategoryFoodResult of(long id, long categoryCode, long foodCode, long createTime, long updateTime, int isDeleted, int status) {
        return new OfdCategoryFoodResult(id, categoryCode, foodCode, createTime, updateTime, isDeleted, status);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdCategoryFoodResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCategoryCode() {
        return categoryCode;
    }

    public OfdCategoryFoodResult setCategoryCode(long categoryCode) {
        this.categoryCode = categoryCode;
        return this;
    }

    public long getFoodCode() {
        return foodCode;
    }

    public OfdCategoryFoodResult setFoodCode(long foodCode) {
        this.foodCode = foodCode;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdCategoryFoodResult setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdCategoryFoodResult setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdCategoryFoodResult setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public OfdCategoryFoodResult setStatus(int status) {
        this.status = status;
        return this;
    }

    // endregion Getter和Setter方法
}
